/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.click.app.service.impl;

import com.click.app.dao.DistinctiveNameDao;
import com.click.app.model.DistinctiveName;
import com.click.app.model.Material;
import com.click.app.service.DistinctiveNameManager;
import java.util.List;

/**
 *
 * @author orgale
 */
public class DistinctiveNameManagerImpl extends GenericManagerImpl<DistinctiveName, Long> implements DistinctiveNameManager {

    DistinctiveNameDao distinctiveNameDao;

    public DistinctiveNameManagerImpl(DistinctiveNameDao distinctiveNameDao) {
        super(distinctiveNameDao);
        this.distinctiveNameDao = distinctiveNameDao;
    }

    public List<DistinctiveName> findById(Long id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public List<DistinctiveName> findDistinctiveNames() {
        return distinctiveNameDao.findDistinctiveNames();
    }

    public List<DistinctiveName> findDistinctiveNamesName(String name){
        return distinctiveNameDao.findDistinctiveNamesName(name);
    }

    public DistinctiveName findDistinctiveNamesByName(String name){
        return distinctiveNameDao.findDistinctiveNamesName(name).get(0);
    }


    public List<String> distinctiveNamesNames(){
        return distinctiveNameDao.distinctiveNamesNames();
    }
}
